const Mock=require("mockjs")
let arr=["邯郸","北京","保定"]
const data=Mock.mock({
    "list|10":[{
        "title":"@ctitle(9,10)",
        "price|150-200":1,
        "city|1":arr
    }],
    "data1":[{
        "jian|20":[
            {
                type:"@ctitle(2,3)"
            }
        ],
        "qu|20":[{
            city:"@ctitle(2)"
        }]
    }]
})

module.exports={
    devServer:{
        open:true,
        before(app){
          app.get("/list",(req,res)=>{
              res.send(data.list)
          })
          app.get("/set",(req,res)=>{
            res.send(data.data1)
        })
        }
    }
}